/**
 * 初始化路由
 * @param app
 */
module.exports = (app) =>{
    const apiPublicPath = process.env.PUBLICPATH;
    app.use(apiPublicPath + "/user",require("./userRoute"))
    // 检查token是否在有效期
    app.use(apiPublicPath + "/whoami",require("./whoamiRoute"))
    // 文件上传
    app.use(apiPublicPath + "/upload",require("./uploadRoute"))
    // 意见反馈
    app.use(apiPublicPath + "/feedback",require("./feedbackRoute"))
    // 企业
    app.use(apiPublicPath + "/enterprise",require("./enterpriseRoute"))
    // 招募信息
    app.use(apiPublicPath + "/moveAbout",require("./moveAboutRoute"))
    // 打卡
    app.use(apiPublicPath + "/clockIn",require("./clockInRoute"))
    // 招募信息
    app.use(apiPublicPath + "/admin",require("./adminRoute"))
    // 志愿者报名
    app.use(apiPublicPath + "/enroll",require("./enrollRoute"))
}
